package com.ruoyi.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class DtNewMsg {

    private Integer id;

    private String msg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    public DtNewMsg(SysNotice notice) {
        this.id = notice.getNoticeId();
        this.msg = notice.getNoticeTitle();
//        this.isUpdate = "1".equals(notice.getIsUpdate());
        this.createTime = notice.getCreateTime();
    }
}
